//
//  HomeReviewsCell.m
//  JiaoX
//
//  Created by yinqy on 15/1/5.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "HomeReviewsCell.h"


@interface HomeReviewsCell()

@end
@implementation HomeReviewsCell

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"productItem";
    HomeReviewsCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[HomeReviewsCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        HomeReviewsView *homeProdView =  [[HomeReviewsView alloc]initWithWidth:JXScreenW];
        self.homeProdView = homeProdView;
        [self addSubview:homeProdView];
    }
    return self;
}
-(void)setReviews:(HomeReviews *)reviews{
    [self.homeProdView setReviews:reviews];
}

@end
